#
# Be sure to run `pod lib lint CHJVideoKit.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'CHJVideoKit'
  s.version          = '0.1.0'
  s.summary          = 'A short description of CHJVideoKit.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://github.com/jxzjxz/CHJVideoKit'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'jxzjxz' => 'jiaxuzhou@yixia.com' }
  s.source           = { :git => 'https://gitee.com/hao-yun/CHJVideoKit.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '8.0'

#s.source_files = 'CHJVideoKit/Classes/*'

  s.subspec 'Interface' do |ss|
  ss.source_files = 'CHJVideoKit/Classes/Interface/*.{h,m}'
     ss.subspec 'Capture' do |sss|
     sss.source_files = 'CHJVideoKit/Classes/Interface/Capture/*.{h,m}'
     end
     ss.subspec 'Edit' do |sss|
     sss.source_files = 'CHJVideoKit/Classes/Interface/Edit/*.{h,m}'
     end
  end

  s.subspec 'MiddleCode' do |ss|
  ss.source_files = 'CHJVideoKit/Classes/MiddleCode/*.{h,m}'
     ss.subspec 'SCRecorder' do |sss|
     sss.source_files = 'CHJVideoKit/Classes/MiddleCode/SCRecorder/*.{h,m}'
     end
     ss.subspec 'SenseAR' do |sss|
     sss.source_files = 'CHJVideoKit/Classes/MiddleCode/SenseAR/*.{h,m}'
        sss.subspec 'include' do |ssss|
        ssss.source_files = 'CHJVideoKit/Classes/MiddleCode/SenseAR/include/*.{h,m}'
        end
        sss.subspec 'utils' do |ssss|
        ssss.source_files = 'CHJVideoKit/Classes/MiddleCode/SenseAR/utils/**/*.{model}'
        end

     end
  end

  s.vendored_libraries = 'CHJVideoKit/Classes/MiddleCode/SenseAR/lib/libSenseAr.a'
#s.resources = ['CHJVideoKit/Classes/MiddleCode/SenseAR/models/*.{model}','CHJVideoKit/Classes/MiddleCode/SenseAR/license/*.{lic}']

   s.frameworks = 'UIKit', 'AVFoundation', 'CoreFoundation','CoreMedia','Foundation'
    s.libraries = 'z','stdc++','sqlite3','c++'
  s.dependency 'FMDB'

end
